using System;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using Gameplay.PVE.Effect;
using UnityEditor;
using UnityEngine;

namespace Gameplay.PVE.Editor
{
    [CustomEditor( typeof(PveEffectController))]
    public class PveEffectControllerEditor:UnityEditor.Editor
    {
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();
            if (GUILayout.Button( "Enable"))
            {
                (target as PveEffectController).SetActive(true);
            }

            if (GUILayout.Button("RefreshLevel"))
            {
                (target as PveEffectController).RefreshNodeByLevel(1);
            }
        }
       
    }
}